#include<iostream>

using namespace std;

class Bank
{
    public:
    virtual void takemoney()=0;
    virtual ostream& showmoney(ostream& os)=0;
};

class Private:public Bank
{
    private:
        unsigned int money;
        void takemoney()
        {
            if(money>100)
                money-=100;
        }
    public:
    Private()
    {
        money=100000;
    }
   
    ostream& showmoney(ostream& os)
    {
        os<<"My account has: "<<money<<" $\n";
        return os;
    }
};

int main()
{
    Bank *Vietcombank;
    Vietcombank=new Private();
    Vietcombank->takemoney();  //*******
    Vietcombank->showmoney(cout);
    return 0;
}
/*
My account has: 99900 $
*/
